import Home from '../views/Home/Home'
import Edit from '../views/Edit/Edit'
import Address from '../views/Address/Address'

// 首页二级路由
import homeRoutes from './home-routes'

const routes = [
    {
        path: '/home',
        component: Home,
        children: homeRoutes
    },
    {
        path: '/edit',
        component: Edit
    },
    {
        path: '/address',
        component: Address
    },
    {
        path: '/',
        redirect: '/home'
    }
]

export default routes